<?php
/**
 * Created by qinpeizhou.
 * Date: 2018/5/13
 * Time: 13:38
 * Email : 1031219129@qq.com
 */
include_once( dirname(__FILE__).'/../../../../vendor/autoload.php' );

class RedisTestController extends Yaf_Controller_Abstract
{
     public function TestRAction(){
         //普通set/get操作
         p_redis()->set('library', 'predis');
         $retval = p_redis()->get('library');
         echo $retval; //显示 'predis'
         return false;

     }
}
